<?php

/* Id */

require_once 'config/url.php';

class q_mvc_action {

    public $view;

    public $controller;

    public function q_mvc_action(){
    }

    public function init(){}

    public function helper($helper){
        return null;
    }

    public function forward($action, $module = null){

        $this->controller->setAction($action);
        if(!empty($module)){
            $this->controller->setModule($module);
        }
    }

    public function redirect($action, $module = null){

    }

    public function setController($controller){
        $this->controller = $controller;
    }

    public function setView($view){
        $this->view = $view;
    }

}

